/**
 * Created by liubin on 2014/6/17.
 */
Ext.define('Order.model.CartCheck', {
    extend: 'Ext.data.Model',
    config: {
        fields: [
            {
                name: 'amount',
                type: 'float'
            },
            'customer', 'tel', 'comment'],
        validations: [
            {
                type: 'presence',
                field: 'customer',
                message: '姓名不能为空'
            },
            {
                type: 'presence',
                field: 'tel',
                message: '电话不能为空'
            }
        ]
    }
});